define(function(require) {
    var $ = require('jquery');
    $(function(){
        $.getJSON( '/api/recommend', function(data){
            var html = [];
            $.each(data, function(i,item){
                html.push('<li><a target="_blank" href="'+item.url+'">'+item.title+'</a></li>');
            });
            $('#recommend_movie').html(html.join(''));
        });
    });

});

